package cn.shadow.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
@ConfigurationProperties("spring.datasource")
public class DataSourceProperties {
    @Value("username")
    private String username;
    @Value("password")
    private String password;
    @Value("url")
    private String url;
    @Value("driverClassName")
    private String driverClassName;
}
